- Web server: any web server which can run PHP. The most popular one is Apache.
- PHP: at least version 4.2.3. net2ftp works under Safe Mode.
- Disk space: 1.5 MB for net2ftp, and a few MB for the temporary files.
1 - Unzip all the files on your computer, and upload them to your server.
2 - The /temp directory should be chmodded to 777 (you can use net2ftp.com to do this).
3 - Set your settings in the settings.inc.php file.
4 - A database is only required if you want to log the actions of the users. To create the tables, execute the SQL queries below (also in the "create_tables.sql" file). This can be done easily in PhpMyAdmin, the popular front-end to MySQL.
- To allow large file uploads and transfers, you may have to change these settings:
- in the file php.ini (directory C:\windows or /etc): upload_max_filesize, post_max_size, max_execution_time, memory_limit
- in the file php.conf (directory /etc/httpd/conf.d): LimitRequestBody
- Protect the /temp and the /admin directories. If you use the Apache web server, use .htaccess and .htpasswd files to do this -- sample files are provided (username admin, password net2ftp).
- .htaccess file: set the path to the .htpasswd file
- .htpasswd file: enter a list of usernames and encrypted passwords (the admin panel can be used to generate encrypted passwords)
- In your php.ini file, register_globals can be set to "off" (this is more secure), but the application will off course also work if it is set to "on".
- The files are transmitted using the BINARY mode by default. There is a list of file extensions (txt, php, ...) which are transmitted in ASCII mode. Edit this list if needed, it is located in /includes/filesystem.inc.php. Look for function ftpAsciiBinary.
In the FTP server's configuration, set it for UNIX style directory listings rather than MSDOS style listings.